<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdvertisPositionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
            Schema::create('advertis_positions', function (Blueprint $table) {
            $table->smallIncrements('id');
            $table->smallInteger('media_id');
            $table->integer('activities_id')->default(0);
            $table->string('title');
            $table->enum('switch', ['1', '2'])->default('1');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('advertis_positions');
    }
}
